/*
 * OpenSCAD File with the code to draw a part of the quadcopter in 3D
 * Part Number: 12
 * Version: 0.01
 * Units: mm
 * Last Modification: Sun Jun 27 21:56:10 WEST 2010
 *
 * Copyright (C) 2010 Henrique Dias <henrique.ribeiro.dias@gmail.com>
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */

frominclude = 0;

module p12_subcomponent()
{
	translate(v = [0, 0, -(14/2-6.5)]) {
		cylinder(h=14, r=2, center=true, $fn=60);
	}
}


module p12_addcomponent()
{
	cylinder(h=13, r=4, center=true, $fn=60);
	translate(v = [0, 0, -(9/2+13/2-4.5)]) {
		sphere(r=4.5, $fn=60);
	}
}

module part12()
{
	difference() {
		union() {
			p12_addcomponent();
		}
		p12_subcomponent();
	}
}

if(frominclude == 0) {
	part12();
}